<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
if ( $curruser['acl'] == 255 && $curruser['prev_id'] != 0 && !SubAccountRight( $curruser, 2 ) )
{
    exit();
}
if ( isset( $_SESSION['subaccount'] ) && $curruser['acl'] < 255 )
{
    exit();
}
if ( $curruser['enabled'] == 2 )
{
    exit();
}
include_once( "class/class.tree.php" );
$account = getVar( "account" );
$mode = getVar( "mode" );
$enabled = getVar( "enabled" );
if ( isset( $account, $mode, $enabled ) )
{
    $a = new tree();
    header( "Content-type: text/plain; charset=utf-8" );
    $data = array( $account, $mode, $enabled );
    echo $a->extension( $data );
    exit();
}
?>